﻿using System;

namespace SimbaRGVMonitor.Controllers
{
    partial class MonitorTcpDataBuffer
    {
        class ReceiveData
        {
            public ReceiveData(object data)
                : this(DateTime.Now, data)
            {

            }

            public ReceiveData(DateTime receiveTime, object data)
            {
                this.data = data;
                this.receiveTime = receiveTime;
            }

            //====================================================================================================
            //以上是类型构造函数
            //----------------------------------------------------------------------------------------------------
            //以下是类型字段
            //====================================================================================================

            private readonly object data;
            private readonly DateTime receiveTime;

            //====================================================================================================
            //以上是类型字段
            //----------------------------------------------------------------------------------------------------
            //以下是类型属性
            //====================================================================================================

            public object Data
            {
                get { return data; }
            }

            public DateTime ReceiveTime
            {
                get { return receiveTime; }
            }
        }
    }
}
